import type
{ RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/time-tool',
  component: Layout,
  name: 'timeTool',
  meta: {
    title: '时间工具',
    icon: 'i-ic:twotone-access-time',
  },
  children: [
    {
      path: '/time-tool/timestamp-converter',
      name: 'timeToolIndex',
      component: () => import('@/views/TimeTool.vue'),
      meta: {
        title: '时间戳转换',
        menu: true,
        breadcrumb: false,
        icon: 'i-mdi:clock-outline',
        activeMenu: '/time-tool/timestamp-converter',
      },
    },
  ],
}

export default routes
